package com.blb.dao;

import com.blb.dto.ZGetgift;
import com.blb.dto.ZGetgiftExample;

import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ZGetgiftMapper {
    long countByExample(ZGetgiftExample example);

    int deleteByExample(ZGetgiftExample example);

    int deleteByPrimaryKey(Integer getid);

    int insert(ZGetgift record);

    int insertSelective(ZGetgift record);

    List<ZGetgift> selectByExample(ZGetgiftExample example);

    ZGetgift selectByPrimaryKey(Integer getid);

    int updateByExampleSelective(@Param("record") ZGetgift record, @Param("example") ZGetgiftExample example);

    int updateByExample(@Param("record") ZGetgift record, @Param("example") ZGetgiftExample example);

    int updateByPrimaryKeySelective(ZGetgift record);

    int updateByPrimaryKey(ZGetgift record);

    List<Integer> selectBytop3(int zid);
}